package com.luozongyao.admin.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author luozongyao
 * @since 2021-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Admin对象", description="")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员id")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    @ApiModelProperty(value = "管理员邮箱")
    private String adminEmail;

    @ApiModelProperty(value = "盐值")
    private String salt;

    @ApiModelProperty(value = "管理员密码")
    private String adminPwd;

    @ApiModelProperty(value = "管理员网名")
    private String adminName;

    @ApiModelProperty(value = "管理员性别 （默认1男，0女）")
    private Boolean adminSex;

    @ApiModelProperty(value = "管理员生日")
    private Date adminBirth;

    @ApiModelProperty(value = "管理员头像")
    private String adminAvatar;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "是否逻辑注销1--true注销，0--false正常使用")
    private Boolean isDeleted;



}
